package com.st.lwb;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import com.st.lwb.adapter.FondLVAdapter;
import com.st.lwb.bean.Fond;
import com.st.lwb.daoimpl.FondDao;

public class FuctionFondBillActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.fuction_fond_bill);
		
		init();
	}
	
	public void init(){
		ListView fond_bill_lv = (ListView) findViewById(R.id.fond_bill_lv);
		
		FondDao dao  = new FondDao(this);
		List<Fond> fonds = dao.queryAll();
		FondLVAdapter adapter = new FondLVAdapter(this, fonds);
		fond_bill_lv.setAdapter(adapter);
	}
}
